/** @jsxImportSource @emotion/react */
import * as React from "react";
import {OriginalViewProps, } from "../../common/base";
import {createItem,} from "../../common/eHelper";
import {useRecordListSubr} from "../../hook/useRecordListSub";
import {DeviceSurvey} from "../../elevator/editor";
import {config设备概况, EntranceSetup} from "./orcBase";
import {ConclusionglRef} from "./ConclusionglRef";
import {config证书概况} from "./CertificatePage";
import {ProjectListMvs} from "../../movable/Projects";
import {VsProjects默认} from "./Regular.R-1";


const recordPrintList =[
  createItem('Entrance', <EntranceSetup/>),
  createItem('ProjectList', <ProjectListMvs  projects={VsProjects默认}/>),
  createItem('CertificatePage', <DeviceSurvey config={config证书概况} label={'锅炉安装、改造和重大修理监督检验证书'}
                                     desc='监督检验证书中出现，台账业务信息中没有的，需要录入的数据部分'
            />),
  createItem('Survey', <DeviceSurvey config={config设备概况} label={'监督检验结论报告-概况'}/>),
  createItem('Conclusion', <ConclusionglRef label={'修理、改造监督检验结论报告-下结论'}/>),

];

export const OriginalView=
  React.forwardRef((
    { action: modAction,  verId, repId='', rep}
    :OriginalViewProps, ref
  ) => {
    const {list}=useRecordListSubr(ref,rep,recordPrintList,modAction,verId);
    return <React.Fragment>
      {list}
    </React.Fragment>;
  } );
